package com.day20.test2;

public class father {

    private son son;

    private wife wife;


//    public father(com.day20.test2.son son, com.day20.test2.wife wife) {
//        this.son = son;
//        this.wife = wife;
//    }

    public com.day20.test2.son getSon() {
        return son;
    }

    public void setSon(com.day20.test2.son son) {
        this.son = son;
    }

    public com.day20.test2.wife getWife() {
        return wife;
    }

    public void setWife(com.day20.test2.wife wife) {
        this.wife = wife;
    }

    public void test(){
        System.out.println("son----->"+son.getName());
        System.out.println("wife---->"+wife.getName());
    }
}
